<?php

/**
 * XFramework
 *
 * @author Diogo Dias Barreiros
 */
final class Logger {
    const WARNING_ERROR = 1;
    const IMPORTANT_ERROR = 2;
    const NOTICE_ERROR = 3;
    const FATAL_ERROR = 4;

    private static $logData = array(
            /* 0 => array(
             *         'level' => INT,
             *         'message' => STRING,
             *         'file' => STRING,
             *         'time' => TIMESTAMP
             * );
             */
    );

    private function __construct() {
        
    }

    public static function addToLog($logLevel, $message, $file = null) {
        self::$logData[] = array(
            'level' => $logLevel,
            'message' => $message,
            'file' => $file,
            'time' => time()
        );
    }

    public static function onEnd() {
        echo '<pre>';
        var_dump(self::$logData);
    }

}

?>
